package com.happycat.social.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.happycat.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;


/**
 * 房间名单
 * 
 * @author jsonbin
 * @date 2020-09-10
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@TableName("social_voice_room_member")
@ApiModel(value="房间成员", description="房间成员")
public class SocialVoiceRoomMember extends BaseEntity<Long> {
    private static final long serialVersionUID=1L;

    /**黑名单*/
    public static final int BLOCK_MEMBER = 1;
    /**被禁言名单*/
    public static final int SHUTUP_MEMBER = 2;
    /**管理员*/
    public static final int MANAGER_MEMBER = 3;
    /**普通名单*/
    public static final int NORMAL_MEMBER = 4;

    @ApiModelProperty(value = "1.黑名单, 2.被禁言名单, 3.管理员, 4.普通成员")
    @TableField(value = "type")
    private Integer type;

    @ApiModelProperty(value = "房间id,平台房间id")
    @TableField(value = "svr_id")
    private Long svrId;

    @ApiModelProperty(value = "聊天室房间号(第三方房间/频道id)")
    @TableField(value = "room_id")
    private String roomId;

    @ApiModelProperty(value = "用户主键id")
    @TableField(value = "account_id")
    private Long accountId;

    @ApiModelProperty(value = "用户id(第三方用户id)")
    @TableField(value = "user_id")
    private String userId;

    @ApiModelProperty(value = "额外字段，可由前端自定义")
    @TableField(value = "ext")
    private String ext;

}
